<%-- 
    Document   : menubar
    Created on : Dec 6, 2011, 1:20:33 PM
    Author     : kydrenw
--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<div id="menu-bar">
    <div class="inner">
        <c:choose>

            <c:when test="${tag.equals('danhmuc')}">

            </c:when>

            <c:when test="${tag.equals('donhang')}">

            </c:when>

            <c:when test="${tag.equals('nguoidung_danhsach')}">
                <a href="nguoidung.htm"><div class="bar-active">Đang hoạt động</div></a>
                <div class="bar-space"></div>
                <a href="nguoidung.htm?action=danhsach_xoa"><div class="bar-noactive" >Đã xóa</div></a>
                <div class="bar-space"></div>
                <a href="nguoidung.htm?action=danhsach_cam"><div class="bar-noactive">Cấm</div></a>           
            </c:when>

            <c:when test="${tag.equals('nguoidung_sua')}">

            </c:when>

            <c:when test="${tag.equals('sanpham_danhsach')}">
                <div class="bar-active">Đã đăng tải</div>
                <div class="bar-space"></div>
                <div class="bar-noactive" ><a href="">Chưa đăng tải</a></div>
                <div class="bar-space"></div>
                <div class="bar-noactive"><a href="">Xóa</a></div> 
            </c:when>

            <c:when test="${tag.equals('sanpham_them')}">

            </c:when>

            <c:when test="${tag.equals('sanpham_sua')}">

            </c:when>

            <c:when test="${tag.equals('thongke')}">

            </c:when>

            <c:when test="${tag.equals('tuychinh')}">

            </c:when>

            <c:otherwise>

            </c:otherwise>
        </c:choose>
    </div>
</div>

<div id="title"> 
    <div class="inner">
        <c:choose>

            <c:when test="${tag.equals('danhmuc')}">
                <img src="images/danhmuc.png" class="icon"/> Danh mục
            </c:when>

            <c:when test="${tag.equals('donhang')}">
                <img src="images/donhang.png" class="icon"/> Đơn hàng
            </c:when>

            <c:when test="${tag.equals('nguoidung_danhsach')|| tag.equals('nguoidung_sua')}">
                <img src="images/nguoidung.png" class="icon"/> Người dùng
            </c:when>

            <c:when test="${tag.equals('sanpham_danhsach')||tag.equals('sanpham_them')||tag.equals('sanpham_sua')}">
                <img src="images/sanpham.png" class="icon"/> Sản phẩm
            </c:when>

            <c:when test="${tag.equals('thongke')}">
                <img src="images/thongke.png" class="icon"/> Thống kê
            </c:when>

            <c:when test="${tag.equals('tuychinh')}">
                <img src="images/tuychinh.png" class="icon"/> Tùy chỉnh
            </c:when>

            <c:otherwise>
                <img src="images/trangchinh.png" class="icon"/> Trang chính
            </c:otherwise>
        </c:choose>
    </div>
</div>

